package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysTaskCycle;
import com.ruoyi.common.pojo.SwitchTaskCycle;

/**
 * @Author: zhangzhe
 * @Date: 2023/9/6
 */
public interface SysTaskCycleService extends IService<SysTaskCycle> {

    /**
     * 获取周期
     * @return
     */
    AjaxResult getCycleList();

    /**
     * 获取常规周期配置
     * @return
     */
    AjaxResult getList();

    /**
     * 获取常规周期配置
     * @param id
     * @return
     */
    AjaxResult getInfo(Long id);

    /**
     * 打开或关闭周期配置
     */
    AjaxResult switchTaskCycle(SwitchTaskCycle param);

    /**
     * 判断职位是否配置周期任务
     * @param postId
     * @return
     */
    AjaxResult exist(Long postId);

}
